package com.xherorlclass;

import com.xherorlclass.annotation.XherorlRpcService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {
    
    // 需要注入一个代理对象
    @XherorlRpcService
    private HelloXherorlRpc helloXherorlRpc;
    
    @GetMapping("hello")
    public String hello(){
        return helloXherorlRpc.sayHi("provider");
    }
    
}
